package com.jieshuibao.model.db;

import java.util.ArrayList;
import java.util.List;

public class VipCardExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private int pageIndex;

    private int pageSize;

    public VipCardExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex=pageIndex;
    }

    public int getPageIndex() {
        return this.pageIndex;
    }

    public void setPageSize(int pageSize) {
        this.pageSize=pageSize;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public VipCardExample(int pageIndex, int pageSize) {
        this();
        this.pageIndex=pageIndex;
        this.pageSize=pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUuidIsNull() {
            addCriterion("uuid is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("uuid is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("uuid =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("uuid <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("uuid >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("uuid >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("uuid <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("uuid <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("uuid like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("uuid not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("uuid in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("uuid not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("uuid between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("uuid not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceIsNull() {
            addCriterion("originalPrice is null");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceIsNotNull() {
            addCriterion("originalPrice is not null");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceEqualTo(Integer value) {
            addCriterion("originalPrice =", value, "originalPrice");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceNotEqualTo(Integer value) {
            addCriterion("originalPrice <>", value, "originalPrice");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceGreaterThan(Integer value) {
            addCriterion("originalPrice >", value, "originalPrice");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("originalPrice >=", value, "originalPrice");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceLessThan(Integer value) {
            addCriterion("originalPrice <", value, "originalPrice");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceLessThanOrEqualTo(Integer value) {
            addCriterion("originalPrice <=", value, "originalPrice");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceIn(List<Integer> values) {
            addCriterion("originalPrice in", values, "originalPrice");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceNotIn(List<Integer> values) {
            addCriterion("originalPrice not in", values, "originalPrice");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceBetween(Integer value1, Integer value2) {
            addCriterion("originalPrice between", value1, value2, "originalPrice");
            return (Criteria) this;
        }

        public Criteria andOriginalPriceNotBetween(Integer value1, Integer value2) {
            addCriterion("originalPrice not between", value1, value2, "originalPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceIsNull() {
            addCriterion("currentPrice is null");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceIsNotNull() {
            addCriterion("currentPrice is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceEqualTo(Integer value) {
            addCriterion("currentPrice =", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceNotEqualTo(Integer value) {
            addCriterion("currentPrice <>", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceGreaterThan(Integer value) {
            addCriterion("currentPrice >", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("currentPrice >=", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceLessThan(Integer value) {
            addCriterion("currentPrice <", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceLessThanOrEqualTo(Integer value) {
            addCriterion("currentPrice <=", value, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceIn(List<Integer> values) {
            addCriterion("currentPrice in", values, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceNotIn(List<Integer> values) {
            addCriterion("currentPrice not in", values, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceBetween(Integer value1, Integer value2) {
            addCriterion("currentPrice between", value1, value2, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCurrentPriceNotBetween(Integer value1, Integer value2) {
            addCriterion("currentPrice not between", value1, value2, "currentPrice");
            return (Criteria) this;
        }

        public Criteria andCardNumIsNull() {
            addCriterion("cardNum is null");
            return (Criteria) this;
        }

        public Criteria andCardNumIsNotNull() {
            addCriterion("cardNum is not null");
            return (Criteria) this;
        }

        public Criteria andCardNumEqualTo(Integer value) {
            addCriterion("cardNum =", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumNotEqualTo(Integer value) {
            addCriterion("cardNum <>", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumGreaterThan(Integer value) {
            addCriterion("cardNum >", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("cardNum >=", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumLessThan(Integer value) {
            addCriterion("cardNum <", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumLessThanOrEqualTo(Integer value) {
            addCriterion("cardNum <=", value, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumIn(List<Integer> values) {
            addCriterion("cardNum in", values, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumNotIn(List<Integer> values) {
            addCriterion("cardNum not in", values, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumBetween(Integer value1, Integer value2) {
            addCriterion("cardNum between", value1, value2, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardNumNotBetween(Integer value1, Integer value2) {
            addCriterion("cardNum not between", value1, value2, "cardNum");
            return (Criteria) this;
        }

        public Criteria andCardImageIsNull() {
            addCriterion("cardImage is null");
            return (Criteria) this;
        }

        public Criteria andCardImageIsNotNull() {
            addCriterion("cardImage is not null");
            return (Criteria) this;
        }

        public Criteria andCardImageEqualTo(String value) {
            addCriterion("cardImage =", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageNotEqualTo(String value) {
            addCriterion("cardImage <>", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageGreaterThan(String value) {
            addCriterion("cardImage >", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageGreaterThanOrEqualTo(String value) {
            addCriterion("cardImage >=", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageLessThan(String value) {
            addCriterion("cardImage <", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageLessThanOrEqualTo(String value) {
            addCriterion("cardImage <=", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageLike(String value) {
            addCriterion("cardImage like", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageNotLike(String value) {
            addCriterion("cardImage not like", value, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageIn(List<String> values) {
            addCriterion("cardImage in", values, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageNotIn(List<String> values) {
            addCriterion("cardImage not in", values, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageBetween(String value1, String value2) {
            addCriterion("cardImage between", value1, value2, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardImageNotBetween(String value1, String value2) {
            addCriterion("cardImage not between", value1, value2, "cardImage");
            return (Criteria) this;
        }

        public Criteria andCardTypeIsNull() {
            addCriterion("cardType is null");
            return (Criteria) this;
        }

        public Criteria andCardTypeIsNotNull() {
            addCriterion("cardType is not null");
            return (Criteria) this;
        }

        public Criteria andCardTypeEqualTo(String value) {
            addCriterion("cardType =", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeNotEqualTo(String value) {
            addCriterion("cardType <>", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeGreaterThan(String value) {
            addCriterion("cardType >", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeGreaterThanOrEqualTo(String value) {
            addCriterion("cardType >=", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeLessThan(String value) {
            addCriterion("cardType <", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeLessThanOrEqualTo(String value) {
            addCriterion("cardType <=", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeLike(String value) {
            addCriterion("cardType like", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeNotLike(String value) {
            addCriterion("cardType not like", value, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeIn(List<String> values) {
            addCriterion("cardType in", values, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeNotIn(List<String> values) {
            addCriterion("cardType not in", values, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeBetween(String value1, String value2) {
            addCriterion("cardType between", value1, value2, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardTypeNotBetween(String value1, String value2) {
            addCriterion("cardType not between", value1, value2, "cardType");
            return (Criteria) this;
        }

        public Criteria andCardStyleIsNull() {
            addCriterion("cardStyle is null");
            return (Criteria) this;
        }

        public Criteria andCardStyleIsNotNull() {
            addCriterion("cardStyle is not null");
            return (Criteria) this;
        }

        public Criteria andCardStyleEqualTo(String value) {
            addCriterion("cardStyle =", value, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleNotEqualTo(String value) {
            addCriterion("cardStyle <>", value, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleGreaterThan(String value) {
            addCriterion("cardStyle >", value, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleGreaterThanOrEqualTo(String value) {
            addCriterion("cardStyle >=", value, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleLessThan(String value) {
            addCriterion("cardStyle <", value, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleLessThanOrEqualTo(String value) {
            addCriterion("cardStyle <=", value, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleLike(String value) {
            addCriterion("cardStyle like", value, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleNotLike(String value) {
            addCriterion("cardStyle not like", value, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleIn(List<String> values) {
            addCriterion("cardStyle in", values, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleNotIn(List<String> values) {
            addCriterion("cardStyle not in", values, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleBetween(String value1, String value2) {
            addCriterion("cardStyle between", value1, value2, "cardStyle");
            return (Criteria) this;
        }

        public Criteria andCardStyleNotBetween(String value1, String value2) {
            addCriterion("cardStyle not between", value1, value2, "cardStyle");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}